package com.ai.test3.controller;

import com.ai.test3.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Date:  2018/11/6
 * Time:  15:44
 * Email: siy@hmgsoft.com
 * Created by siy
 */
@RestController
@RequestMapping("/v1")
public class OrderController {

	@Resource
	private OrderService orderService;

	@GetMapping("/buy")
	public String buy(){
		orderService.buySth(1,100L);
		return "ok";
	}


}
